#WILL FIND OUT ALL THE .IN FILES IN THE FOLDER AND LIST IT
cd ../test/vfstestdata
ls -a *.in > ../listOfFiles
cd ../../result

#WILL READ LINE BY LINE AND POPULATE THE ARRAY
count=0
clear
while read line
do
  arr[count]=$line  
  #echo ${arr[$count]}
  count=$((count+1))
done < ../test/listOfFiles


#REMOVES WHATEVER WILL BE THERE EARLIER
ml=$(make -f ../build/Makefile)
#FOR LOOP TO RUN ALL THE SCRIPTS
for i in {0..312} 
do 
echo $((i)) ${arr[i]}
x=$(./../bin/vfs_group19 ../test/vfstestdata/${arr[i]})
echo "$x";
echo $'\n';
done

#REMOVES WHATEVER WILL BE THERE EARLIER
rm ../bin/*
#mk=$(make -f ../build/Makefile)
#echo $mk
rm ../result/*; 

